#!/usr/bin/env bash

currentdate=$(date +%Y%m%d)
datapath="/user_clicks/$currentdate/clicklog.dat"
query="load data inpath '$datapath' into table user_clicks partition (dt='$currentdate');"


echo $query

/opt/lagou/servers/hive-2.3.7/bin/hive -e "$query"
